package BUS;

import java.util.ArrayList;

import DAO.paintDAO;
import DTO.paintDTO;

public class paintBUS {
	public static long createpaint(long maPaint,long maghichu, String url) {
		return paintDAO.createPaint(maPaint,maghichu, url);
	}

	public static boolean deletePaint(long rowId) {
		return paintDAO.deletePaint(rowId);
	}

	public static boolean XoaTatCaPaintCuaMotGhiChu(long rowId) {
		return paintDAO.XoaTatCaPaintCuaMotGhiChu(rowId);
	}

	public static ArrayList<paintDTO> getAllPaint() {

		return paintDAO.getAllPaint();
	}

	public static paintDTO getPaint(long rowId) {
		return paintDAO.getPaint(rowId);
	}

	public static ArrayList<paintDTO> getAllPaintfromNote(long rowId) {

		return paintDAO.getAllPaintfromNote(rowId);

	}

	public static boolean updatePaint(long rowId, long maghichu, String url) {
		return paintDAO.updatePaint(rowId, maghichu, url);
	}
}
